package com.chumi.bootstrap.controller.tsys;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.chumi.bootstrap.model.standard.tsys.TSysMenu;
import com.chumi.bootstrap.service.tsys.TSysMenuService;
import com.llsfw.core.controller.base.BaseController;

@Controller
@RequestMapping("TSysMenuController")
public class TSysMenuController extends BaseController {
	
    private static final Logger LOG = LogManager.getLogger();

    @Autowired
    private TSysMenuService tsms;
    
    @RequestMapping("getMenuList")
	@ResponseBody
    public List<TSysMenu> getMenuList(HttpServletRequest request,String condition) throws IOException{
    	List<TSysMenu> menulist = tsms.selectMenuList();  	
		return menulist;
    }    
}
